package heven.holt.eyepetizer.di

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import heven.holt.eyepetizer.api.ApiMainPageService
import heven.holt.eyepetizer.repository.MainPageRepository
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object RepositoryModule {
    @Provides
    @Singleton
    fun provideWanConfigRepository(apiMainPageService: ApiMainPageService): MainPageRepository =
        MainPageRepository(apiMainPageService)
}